﻿using Microsoft.AspNetCore.Mvc;
using StorageDemo.Storage;
using System.Threading.Tasks;

namespace StorageDemo.Web.Api.Controllers
{
    [ApiController]
    [Route("[controller]")]
    public class HomeController : ControllerBase
    {
        private readonly IBlobContainer _blobContainer;

        public HomeController(IBlobContainer blobContainer)
        {
            _blobContainer = blobContainer;
        }

        [HttpGet]
        public async Task Get()
        {
            var stream = await _blobContainer.GetAsync("day.png");
        }
    }
}
